//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.ncu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ncu.domain.Ads;
import com.ncu.mapper.AdsMapper;
import com.ncu.service.AdsService;
import com.ncu.vo.QueryPageBean;
import org.springframework.stereotype.Service;

@Service
public class AdsServiceImpl extends ServiceImpl<AdsMapper, Ads> implements AdsService {
    public AdsServiceImpl() {
    }

    public Page<Ads> getSeatPage(QueryPageBean queryPageBean) {
        Page<Ads> seatPage = new Page();
        seatPage.setCurrent((long)queryPageBean.getCurrentPage());
        seatPage.setSize((long)queryPageBean.getPageSize());
        QueryWrapper<Ads> seatQueryWrapper = new QueryWrapper();
        seatQueryWrapper.like(queryPageBean.getQueryString()!=null&&queryPageBean.getQueryString()!="","name",queryPageBean.getQueryString());

        return page(seatPage, seatQueryWrapper);
    }
}
